package com.xmtlxx.tms.mapper;

import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.xmtlxx.tms.domain.ScheduleDtl;
import com.xmtlxx.tms.domain.bo.ScheduleDtlBo;
import com.xmtlxx.tms.domain.vo.ScheduleDtlVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车次车辆Mapper接口
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
public interface ScheduleDtlMapper extends BaseMapperPlus<ScheduleDtlMapper, ScheduleDtl, ScheduleDtlVo> {
    /**
     * 根据条件分页查询车次车辆
     *
     * @param scheduleDtl 车次车辆
     * @return Page ScheduleDtl
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "s.create_by"),
//        @DataColumn(key = "deptName", value = "s.dept_id"),
//        @DataColumn(key = "userName", value = "s.create_by")
//    })
    Page<ScheduleDtlVo> selectPageScheduleDtlList(@Param("page") Page<ScheduleDtl> page,@Param("scheduleDtl") ScheduleDtlBo scheduleDtl);

    /**
     * 查询车次车辆列表
     *
     * @param scheduleDtl 车次车辆
     * @return 车次车辆集合
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "s.create_by"),
//        @DataColumn(key = "deptName", value = "s.dept_id"),
//        @DataColumn(key = "userName", value = "s.create_by")
//    })
    List<ScheduleDtlVo> selectScheduleDtlList(@Param("scheduleDtl") ScheduleDtlBo scheduleDtl);

    ScheduleDtlVo selectScheduleDtlVoByID(String id);
}
